<%@page import="com.demoweb.model.dto.Membership"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<div id="menu">
        
				<ul>
					<li><a href="/demoweb/tetris/gamestartform.action">Game Start</a></li>			
					<li><a href="/demoweb/tetris/gamediscription.action">GameDiscription</a></li>
					<li><a href="/demoweb/tetris/gamedownload.action">GameDownload</a></li>
					<li><a href="/demoweb/tetris/rankinglist.action">Ranking</a></li>
					<li><a href="/demoweb/tetris/writeform2.action">User Comment</a></li>
					
				</ul>
			</div>
            	<%
            		if (session.getAttribute("loginuser") == null) { //로그인 하지 않은 경우
            	%>
                	<a href="/demoweb/account/loginform.action">login</a>
                	<a href="/demoweb/member/registerform.action">register</a>
                <%
                	} else {
                %>
                	<%
                		Membership member = (Membership)session.getAttribute("loginuser");
                	%>
                	<%= member.getMemberId() %>님 환영합니다                
                	<a href="/demoweb/account/logout.action">logout</a>
                <% } %>
            </div>
        </div>     

        
           
        
        